OnSyncServerListener

Listener for on-sync events on the server side. Will be fired for any and all updated configs, allowing inspection of other configs. For use in your own configs, consider directly implementing Config.onSyncClient. Common code should also use this, as server configs are loaded on both sides regardless of environment (they are not technically "server" configs, they are "synced" configs).

Register with EventApi.onSyncClient

Author

fzzyhmstrs

Since

0.5.0

Functions

Link copied to clipboard
abstract fun onSync(id: Identifier, config: Config)

Called by the onSyncClient event when the client side of a config is synced. NOTE: Only called if a restart prompt is not created (so if the game state will continue into game).